package util.math;

import java.util.Collections;
import java.util.List;

public class RandomElement {

	
	
	
	public static boolean getRandomBoolean(){
		
		
		double r= Math.random();
		
		
		if(r<0.5) return true;
		
		
		return false;
		
	}
	
	
	
	
	
	public static Object getRandomElement (List a){
		
		
		Collections.shuffle(a);
		
		
		
		
		Object f = a.get(0);
		
		return f;
	}
	
	
	
}
